import request from '@/utils/request'

// 查询课题评审列表
export function listMyJudge(query) {
  return request({
    url: '/subject/judge/my',
    method: 'get',
    params: query
  })
}

// 查询课题评审列表
export function listJudge(query) {
  return request({
    url: '/subject/judge/list',
    method: 'get',
    params: query
  })
}

// 查询课题评审详细
export function getJudge(id) {
  return request({
    url: '/subject/judge/' + id,
    method: 'get'
  })
}

// 新增课题评审
export function addJudge(data) {
  return request({
    url: '/subject/judge',
    method: 'post',
    data: data
  })
}

// 修改课题评审
export function updateJudge(data) {
  return request({
    url: '/subject/judge',
    method: 'put',
    data: data
  })
}

// 删除课题评审
export function delJudge(id) {
  return request({
    url: '/subject/judge/' + id,
    method: 'delete'
  })
}

// 导出课题评审
export function exportJudge(query) {
  return request({
    url: '/subject/judge/export',
    method: 'get',
    params: query
  })
}